package edu.spec.lyq.week05.class1;

public class Student {


        //姓名
        private String xm;
        //学号
        private String xh;
        //班级
        private static String bj;
        //专业
        private static String zy;
        Student(String xm,String xh,String bj,String zy)
        {
            this.xm = xm;
            this.xh = xh;
            Student.bj = bj;
            Student.zy = zy;
        }
        public String getXm()
        {
            return this.xm;
        }
        public void setXm(String xm)
        {
            this.xm = xm;
        }
        public String getXh()
        {
            return this.xh;
        }
        public void setXh(String xh)
        {
            this.xh = xh;
        }
        public static String getBj()
        {
            return Student.bj;
        }
        public void setBj(String bj)
        {
            Student.bj = bj;
        }
        public String getZy()
        {
            return Student.zy;
        }
        public void setZy(String zy)
        {
            Student.zy = zy;
        }
        public static void main(String[] args)
        {
            Student self = new Student("李阳琦","11","17软件1班","软件与形象服务");
            self.setBj("17智产一班");
            //ystem.out.println(self.getBj());
            System.out.println(Student.getBj());
            self.setXh("22");
            System.out.println(self.getXh());
            //System.out.println(Student.getXh());


        }

    }

